# Makefile for SM3 implementation
CC = gcc
CFLAGS = -Wall -Wextra -std=c99 -O2
TARGET = sm3_demo
SOURCES = sm3_final.c

all: $(TARGET)

$(TARGET): $(SOURCES)
	$(CC) $(CFLAGS) -o $(TARGET) $(SOURCES)

clean:
	rm -f $(TARGET)

test: $(TARGET)
	./$(TARGET)

.PHONY: all clean test
